import service from '@/utils/request'

// @Tags Physique
// @Summary 创建Physique
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Physique true "创建Physique"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /physique/createPhysique [post]
export const createPhysique = (data) => {
  return service({
    url: '/physique/createPhysique',
    method: 'post',
    data
  })
}

// @Tags Physique
// @Summary 删除Physique
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Physique true "删除Physique"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /physique/deletePhysique [delete]
export const deletePhysique = (data) => {
  return service({
    url: '/physique/deletePhysique',
    method: 'delete',
    data
  })
}

// @Tags Physique
// @Summary 删除Physique
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Physique"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /physique/deletePhysique [delete]
export const deletePhysiqueByIds = (data) => {
  return service({
    url: '/physique/deletePhysiqueByIds',
    method: 'delete',
    data
  })
}

// @Tags Physique
// @Summary 更新Physique
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Physique true "更新Physique"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /physique/updatePhysique [put]
export const updatePhysique = (data) => {
  return service({
    url: '/physique/updatePhysique',
    method: 'put',
    data
  })
}

// @Tags Physique
// @Summary 用id查询Physique
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Physique true "用id查询Physique"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /physique/findPhysique [get]
export const findPhysique = (params) => {
  return service({
    url: '/physique/findPhysique',
    method: 'get',
    params
  })
}

// @Tags Physique
// @Summary 分页获取Physique列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Physique列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /physique/getPhysiqueList [get]
export const getPhysiqueList = (params) => {
  return service({
    url: '/physique/getPhysiqueList',
    method: 'get',
    params
  })
}

export const setPhysiqueGraphic = (data) => {
  return service({
    url: '/physique/setPhysiqueGraphic',
    method: 'post',
    data
  })
}


export const getPhysiqueGraphic = (params) => {
  return service({
    url: '/physique/getPhysiqueGraphic',
    method: 'get',
    params
  })
}
